package entities;

public class CommentEntity {
	private int id = 0;
	private int goodsId = 0;
	private int userId = 0;
	private String title = "";
	private String content = "";
	private int rank = 0;
	private String time = "";

	private String userName = "";
	private String userHead = "";

	// 针对个人评论列表
	private String goodsImg = "";
	private String goodsName = "";

	public CommentEntity() {
		super();
	}

	public CommentEntity(int id, int goodsId, int userId, String title,
			String content, int rank, String time, String userName,
			String userHead, String goodsImg, String goodsName) {
		super();
		this.id = id;
		this.goodsId = goodsId;
		this.userId = userId;
		this.title = title;
		this.content = content;
		this.rank = rank;
		this.time = time;
		this.userName = userName;
		this.userHead = userHead;
		this.goodsImg = goodsImg;
		this.goodsName = goodsName;
	}

	public int getId() {
		return id;
	}

	public int getGoodsId() {
		return goodsId;
	}

	public int getUserId() {
		return userId;
	}

	public String getTitle() {
		return title;
	}

	public String getContent() {
		return content;
	}

	public int getRank() {
		return rank;
	}

	public String getTime() {
		return time;
	}

	public String getUserName() {
		return userName;
	}

	public String getUserHead() {
		return userHead;
	}

	public String getGoodsImg() {
		return goodsImg;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setGoodsId(int goodsId) {
		this.goodsId = goodsId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public void setRank(int rank) {
		this.rank = rank;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public void setUserHead(String userHead) {
		this.userHead = userHead;
	}

	public void setGoodsImg(String goodsImg) {
		this.goodsImg = goodsImg;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	@Override
	public String toString() {
		return "CommentEntity [id=" + id + ", goodsId=" + goodsId + ", userId="
				+ userId + ", title=" + title + ", content=" + content
				+ ", rank=" + rank + ", time=" + time + ", userName="
				+ userName + ", userHead=" + userHead + ", goodsImg="
				+ goodsImg + ", goodsName=" + goodsName + "]";
	}
	
	

}
